package com.cskaoyan.catmall.dao;

import com.cskaoyan.catmall.model.bo.AdminListBo;
import com.cskaoyan.catmall.model.bo.AdminUpdateBo;
import com.cskaoyan.catmall.model.vo.admin.AdminCreateVo;
import com.cskaoyan.catmall.model.vo.admin.AdminListVo;
import com.cskaoyan.catmall.model.vo.admin.AdminUpdateVo;

import java.util.List;

public interface AdminMapper {

    List<AdminListVo.ListDTO> selectAllAdmin(AdminListBo adminListBo);

    void insertAdmin(AdminCreateVo adminCreateVo);

    void deleteAdmin(Integer id);

    void updateAdmin(AdminUpdateBo adminUpdateBo);

    AdminUpdateVo selectAdminById(Integer id);

    List<String> selectAllAdminName(Integer id);

    List<String> selectPasswordByUsername(String username);

    String selectAvatar(String principal);

    Integer[] selectRoleId(String principal);

    String selectRole(int roleId);

    List<String> selectPerms(Integer roleId);

    List<Integer> selectAdminByUsername(String username);


    List<String> selectUserPerms(String[] list);

    List<String> selectUserRoles(String[] list);

}
